package com.ruoyi.saleReturn.saleReturnStatusMachine.impl;

import com.ruoyi.saleReturn.domain.SaleReturnOrder;
import com.ruoyi.saleReturn.saleReturnStatusMachine.SaleReturnService;
import org.springframework.stereotype.Component;

/**
 * 销售退货状态流转 : 驳回
 */
@Component
public class SaleReturnReject implements SaleReturnService {

    /**
     * 工厂的Key
     */
    private static final String FLAG = "2";

    /**
     * 获取工厂的Key
     * @return
     */
    @Override
    public String get() {
        return FLAG;
    }

    /**
     * 业务执行
     * @param saleReturnOrder
     * @return
     */
    @Override
    public Integer execute(SaleReturnOrder saleReturnOrder) {
        return 1;
    }
}
